<template>
  <h1>App组件标题</h1>
  <p>App组件数据:{{ num }}</p>
  <button @click="num++">修改数据</button>
  <hr />
  <HelloWorld :msg="msg" :num="num"></HelloWorld>
</template>

<script>
import HelloWorld from "./components/HelloWorld";
import { ref } from "vue";
export default {
  name: "App",
  components: { HelloWorld },
  setup() {
    let msg = ref("hashMap");
    let num = ref(26);

    return {
      msg,
      num,
    };
  },
  computed: { HelloWorld },
};
</script>

<style>
</style>